import React, { Component } from 'react'

export default class APP extends Component {
  state = {
    list: [{
          detail:"111",
          pas:0
      },{
          detail:"222",
          pas:1
      },{
          detail:"333",
          pas:2
      }]
  }
  render() {
    var dataList = [this.state.list.map(item => 
        <li key={item.pas}>{item.detail}</li>
    )]
    return (
      <div>
          <ul>
              {dataList}
          </ul>
      </div>
    )
  }
}
